package com.common.boot.dao;

import com.common.boot.model.News;
import com.common.boot.model.NewsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    long countByExample(NewsExample example);

    int deleteByExample(NewsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(News row);

    int insertSelective(News row);

    List<News> selectByExample(NewsExample example);

    News selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") News row, @Param("example") NewsExample example);

    int updateByExample(@Param("row") News row, @Param("example") NewsExample example);

    int updateByPrimaryKeySelective(News row);

    int updateByPrimaryKey(News row);
}